package com.example.demo.service;

import com.example.demo.domain.User;

import java.util.List;

/**
 * @author WaterTiger
 * @since 2020/6
 */
public interface UserService {
    void addUser(User user);
    void delUser(int id);
    User getUserById(int id);
    List<User> getAll();
    void saveUser(User user);
    public boolean CheckPassword(String username,String password);
    public User getUserByUserName(String username);
}
